<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
    <ui:composition template="/templates/adminManage.xhtml">
        <ui:define name="adminmain">
            <a4j:keepAlive beanName="adminManageMbean" />
            <h:form>
            <table>

                <tr>
                    <td>
                        原密码：
                    </td>
                    <td>
                        <h:inputSecret id="password" value="" />
                    </td>
                </tr>
                <tr>
                    <td>
                        新密码：
                    </td>
                    <td>
                        <h:inputSecret id="newpassword"    />
                    </td>
                </tr>
                <tr>
                    <td>
                        请再次输入新密码：
                    </td>
                    <td>
                        <h:inputSecret id="renewpassword"    />
                    </td>
                </tr>

                <tr>
                    <td>
                        验证码：
                    </td>
                    <td>
                        <h:inputText value="#{adminManageMbean.vCode}" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <rich:paint2D id="painter" width="#{adminManageMbean.vc.width}" height="#{adminManageMbean.vc.height}"
                                      data="#{adminManageMbean.vc}" format="png" paint="#{adminManageMbean.paintVerifyCode}" />

                        <a4j:commandLink action="#{adminManageMbean.newVCodeActon}" immediate="true" reRender="painter" value="刷新验证码"/>
                    </td>
                </tr>

            </table>
                                <a4j:commandButton  action="#{adminManageMbean.saveUserAction}" value="保存"/>
            <a4j:commandButton  action="back" value="返回" immediate="true"/>
            </h:form>
        </ui:define>
    </ui:composition>
</html>

